|
Gaudi Framework, version v21r6 |
| Home | Generated: 11 Nov 2009 |
#include <CArrayAsProperty.h>


Definition at line 113 of file CArrayAsProperty.h.
Public Member Functions | |
| BoundedVerifier () | |
| Constructors. | |
| virtual | ~BoundedVerifier () |
| Destructor. | |
| bool | isValid (const typename Traits::CVal value) const |
| Check if the value is within bounds. | |
| bool | hasLower () const |
| Return if it has a lower bound. | |
| bool | hasUpper () const |
| Return if it has a lower bound. | |
| Traits::CRef | lower () const |
| Return the lower bound value. | |
| Traits::CRef | upper () const |
| Return the upper bound value. | |
| void | setLower (typename Traits::CRef value) |
| Set lower bound value. | |
| void | setUpper (typename Traits::CRef value) |
| Set upper bound value. | |
| void | clearLower () |
| Clear lower bound value. | |
| void | clearUpper () |
| Clear upper bound value. | |
| void | setBounds (typename Traits::CRef lower, typename Traits::CRef upper) |
| Set both bounds (lower and upper) at the same time. | |
| void | clearBounds () |
| Clear both bounds (lower and upper) at the same time. | |
Private Types | |
| typedef Gaudi::Utils::PropertyTypeTraits < T[N]> | Traits |
Private Attributes | |
| bool | m_hasLowerBound |
| Data and Function Members for This Class Implementation. | |
| bool | m_hasUpperBound |
| const T | m_lowerBound [N] |
| const T | m_upperBound [N] |
typedef Gaudi::Utils::PropertyTypeTraits<T[N]> BoundedVerifier< T[N]>::Traits [private] |
Definition at line 116 of file CArrayAsProperty.h.
| BoundedVerifier< T[N]>::BoundedVerifier | ( | ) | [inline] |
Constructors.
Definition at line 121 of file CArrayAsProperty.h.
00122 : m_hasLowerBound ( false ) 00123 , m_hasUpperBound ( false ) 00124 {}
| virtual BoundedVerifier< T[N]>::~BoundedVerifier | ( | ) | [inline, virtual] |
| bool BoundedVerifier< T[N]>::isValid | ( | const typename Traits::CVal | value | ) | const [inline] |
Check if the value is within bounds.
Definition at line 129 of file CArrayAsProperty.h.
00130 { 00131 return 00132 ( ( m_hasLowerBound && Traits::less ( *value , m_lowerBound ) ) ? false : true ) 00133 && 00134 ( ( m_hasUpperBound && Traits::less ( m_upperBound , *value ) ) ? false : true ) ; 00135 }
| bool BoundedVerifier< T[N]>::hasLower | ( | ) | const [inline] |
Return if it has a lower bound.
Definition at line 137 of file CArrayAsProperty.h.
00137 { return m_hasLowerBound; }
| bool BoundedVerifier< T[N]>::hasUpper | ( | ) | const [inline] |
Return if it has a lower bound.
Definition at line 139 of file CArrayAsProperty.h.
00139 { return m_hasUpperBound; }
| Traits::CRef BoundedVerifier< T[N]>::lower | ( | ) | const [inline] |
Return the lower bound value.
Definition at line 141 of file CArrayAsProperty.h.
00141 { return m_lowerBound; }
| Traits::CRef BoundedVerifier< T[N]>::upper | ( | ) | const [inline] |
Return the upper bound value.
Definition at line 143 of file CArrayAsProperty.h.
00143 { return m_upperBound; }
| void BoundedVerifier< T[N]>::setLower | ( | typename Traits::CRef | value | ) | [inline] |
Set lower bound value.
Definition at line 146 of file CArrayAsProperty.h.
00146 { m_hasLowerBound = true; Traits::assign ( m_lowerBound , value ) ; }
| void BoundedVerifier< T[N]>::setUpper | ( | typename Traits::CRef | value | ) | [inline] |
Set upper bound value.
Definition at line 148 of file CArrayAsProperty.h.
00148 { m_hasUpperBound = true; Traits::assign ( m_upperBound , value ) ; }
| void BoundedVerifier< T[N]>::clearLower | ( | ) | [inline] |
Clear lower bound value.
Definition at line 150 of file CArrayAsProperty.h.
00150 { m_hasLowerBound = false; }
| void BoundedVerifier< T[N]>::clearUpper | ( | ) | [inline] |
Clear upper bound value.
Definition at line 152 of file CArrayAsProperty.h.
00152 { m_hasUpperBound = false; }
| void BoundedVerifier< T[N]>::setBounds | ( | typename Traits::CRef | lower, | |
| typename Traits::CRef | upper | |||
| ) | [inline] |
| void BoundedVerifier< T[N]>::clearBounds | ( | ) | [inline] |
Clear both bounds (lower and upper) at the same time.
Definition at line 162 of file CArrayAsProperty.h.
00163 { 00164 clearLower(); 00165 clearUpper(); 00166 }
bool BoundedVerifier< T[N]>::m_hasLowerBound [private] |
Data and Function Members for This Class Implementation.
Data members
Definition at line 172 of file CArrayAsProperty.h.
bool BoundedVerifier< T[N]>::m_hasUpperBound [private] |
Definition at line 173 of file CArrayAsProperty.h.
const T BoundedVerifier< T[N]>::m_lowerBound[N] [private] |
Definition at line 174 of file CArrayAsProperty.h.
const T BoundedVerifier< T[N]>::m_upperBound[N] [private] |
Definition at line 175 of file CArrayAsProperty.h.